package code09集合.Set;

import java.util.Arrays;
import java.util.TreeSet;

/**
 * @author 黄衡熙
 * @version 1.0
 */
public class Test05_TreeSet {

    public static void main(String[] args) {
        TreeSet<Integer> set = new TreeSet<>(Arrays.asList(8, 3, 9, 13, 2, 5, 1, 6));
        System.out.println(set);

        TreeSet<String> set2 = new TreeSet<>(Arrays.asList("jack", "tom", "alice", "john", "admin", "lucy", "alex", "lily"));
        System.out.println(set2);
    }

}